const model = process.env.NODE_ENV;
const path = require("path");

function resolve(dir) {
	return path.join(__dirname, "./", dir);
}
module.exports = {
	// assetsDir: "assets",

	outputDir: "dist",

	// publicPath: model === "production" ? "/vue3" : "/",

	productionSourceMap: model === "development",

	// 配置
	chainWebpack: config => {
		config.resolve.alias.set("@", resolve("src"));
	},
	configureWebpack: config => {
		config.plugins.push(...[]);
		config.externals = {
			// axios: "axios",
			// vue: "Vue",
			// "vue-router": "VueRouter",
			// "element-ui": "ELEMENT",
			// echarts: "echarts",
			"dhui": "dhui",
		};
	},
};
